package one.stand.mapper;

import one.stand.model.GoodSpec;
import one.stand.model.GoodSpecModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodSpecMapperExt extends GoodSpecMapper {
    int delGoodSpec(Integer goodsId);

    /**
     * 获取商品类型数
     */
    List<GoodSpecModel> getSpec(GoodSpecModel record);

    List<GoodSpecModel> selectGoodSpec(GoodSpecModel record);

    int updateGoodSpecNum(@Param("specId") Integer specId, @Param("specNum") Integer specNum);

    int updateGoodsId(GoodSpecModel record);

    List<GoodSpec> selectSpecs(@Param("goodsId") Integer goodsId);

    void updateDel(@Param("typeIds") String typeIdsStr);

    GoodSpec select(@Param("goodsId") Integer goodsId, @Param("specName") String specName);

    int selectArCount(@Param("goodsId") Integer goodsId);
}
